package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.entity.TlCity;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CityMapper extends BaseMapper<TlCity> {
    //查询城市名称
    @Select("SELECT ct.city_name FROM tl_car c,tl_center ce,tl_city ct WHERE c.car_id=ce.car_id AND ce.city_id=ct.city_id AND c.car_name=#{name}")
    List<TlCity> findByName(String carName);
}
